<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>websocket</title>
    <script src="../socket.io/socket.io.js" charset="utf-8"></script>
</head>
<body>
    hello websocket
</body>
<script>
     let sock=io('http://localhost:8080/');

        //sock.emit
        //sock.on

        //sock.emit('aaa', 12, 5, 8);

    sock.on('t', function (ts){
    console.log('服务器发送过来的时间',ts);
    });
</script>
</html>